package com.hoas.quickstart.threads.chapter05.chapter05_1_2;

import java.util.Date;
import java.util.TimerTask;

public class MyTaskD extends TimerTask {

    private int i;

    public MyTaskD(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        System.out.println("任务第"+ i +"次执行了，时间为 " + new Date());
    }
}
